3.894 \(\int \frac{(d+e x)^2 \sqrt{a+b x+c x^2}}{\sqrt{f+g x}} \, dx\)

Optimal. Leaf size=755 \[ -\frac{4 \sqrt{f+g x} \sqrt{a+b x+c x^2} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (-\left (10 d^2 g^2-34 d e f g+21 e^2 f^2\right )\right )\right )}{105 c^2 g^3}+\frac{4 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (-c^2 g \left (2 a e g (13 e f-42 d g)-b \left (35 d^2 g^2-42 d e f g+16 e^2 f^2\right )\right )+b c e g^2 (-29 a e g-28 b d g+9 b e f)+8 b^3 e^2 g^3-2 c^3 f \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{2 e (f+g x)^{3/2} \sqrt{a+b x+c x^2} (-b e g-4 c d g+6 c e f)}{35 c g^3}+\frac{2 (d+e x)^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}{7 g} \]

[Out]

(-4*(2*b^2*e^2*g^2 + c*e*g*(4*b*e*f - 7*b*d*g - 5*a*e*g) - c^2*(21*e^2*f^2 - 34*
d*e*f*g + 10*d^2*g^2))*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(105*c^2*g^3) + (2*(
d + e*x)^2*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(7*g) - (2*e*(6*c*e*f - 4*c*d*g
- b*e*g)*(f + g*x)^(3/2)*Sqrt[a + b*x + c*x^2])/(35*c*g^3) + (Sqrt[2]*Sqrt[b^2 -
 4*a*c]*(8*b^3*e^2*g^3 + b*c*e*g^2*(9*b*e*f - 28*b*d*g - 29*a*e*g) - 2*c^3*f*(24
*e^2*f^2 - 56*d*e*f*g + 35*d^2*g^2) - c^2*g*(2*a*e*g*(13*e*f - 42*d*g) - b*(16*e
^2*f^2 - 42*d*e*f*g + 35*d^2*g^2)))*Sqrt[f + g*x]*Sqrt[-((c*(a + b*x + c*x^2))/(
b^2 - 4*a*c))]*EllipticE[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x)/Sqrt[b^2 -
4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)])
/(105*c^3*g^4*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[a + b
*x + c*x^2]) + (4*Sqrt[2]*Sqrt[b^2 - 4*a*c]*(c*f^2 - b*f*g + a*g^2)*(2*b^2*e^2*g
^2 + c*e*g*(4*b*e*f - 7*b*d*g - 5*a*e*g) + c^2*(24*e^2*f^2 - 56*d*e*f*g + 35*d^2
*g^2))*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[-((c*(a + b*
x + c*x^2))/(b^2 - 4*a*c))]*EllipticF[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x
)/Sqrt[b^2 - 4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^2 -
 4*a*c])*g)])/(105*c^3*g^4*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])

_______________________________________________________________________________________

Rubi [A]  time = 3.97356, antiderivative size = 755, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.194 \[ -\frac{4 \sqrt{f+g x} \sqrt{a+b x+c x^2} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (-\left (10 d^2 g^2-34 d e f g+21 e^2 f^2\right )\right )\right )}{105 c^2 g^3}+\frac{4 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} \left (c e g (-5 a e g-7 b d g+4 b e f)+2 b^2 e^2 g^2+c^2 \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (-c^2 g \left (2 a e g (13 e f-42 d g)-b \left (35 d^2 g^2-42 d e f g+16 e^2 f^2\right )\right )+b c e g^2 (-29 a e g-28 b d g+9 b e f)+8 b^3 e^2 g^3-2 c^3 f \left (35 d^2 g^2-56 d e f g+24 e^2 f^2\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{105 c^3 g^4 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{2 e (f+g x)^{3/2} \sqrt{a+b x+c x^2} (-b e g-4 c d g+6 c e f)}{35 c g^3}+\frac{2 (d+e x)^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}{7 g} \]

Antiderivative was successfully verified.

[In]  Int[((d + e*x)^2*Sqrt[a + b*x + c*x^2])/Sqrt[f + g*x],x]

[Out]

(-4*(2*b^2*e^2*g^2 + c*e*g*(4*b*e*f - 7*b*d*g - 5*a*e*g) - c^2*(21*e^2*f^2 - 34*
d*e*f*g + 10*d^2*g^2))*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(105*c^2*g^3) + (2*(
d + e*x)^2*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])/(7*g) - (2*e*(6*c*e*f - 4*c*d*g
- b*e*g)*(f + g*x)^(3/2)*Sqrt[a + b*x + c*x^2])/(35*c*g^3) + (Sqrt[2]*Sqrt[b^2 -
 4*a*c]*(8*b^3*e^2*g^3 + b*c*e*g^2*(9*b*e*f - 28*b*d*g - 29*a*e*g) - 2*c^3*f*(24
*e^2*f^2 - 56*d*e*f*g + 35*d^2*g^2) - c^2*g*(2*a*e*g*(13*e*f - 42*d*g) - b*(16*e
^2*f^2 - 42*d*e*f*g + 35*d^2*g^2)))*Sqrt[f + g*x]*Sqrt[-((c*(a + b*x + c*x^2))/(
b^2 - 4*a*c))]*EllipticE[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x)/Sqrt[b^2 -
4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)])
/(105*c^3*g^4*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[a + b
*x + c*x^2]) + (4*Sqrt[2]*Sqrt[b^2 - 4*a*c]*(c*f^2 - b*f*g + a*g^2)*(2*b^2*e^2*g
^2 + c*e*g*(4*b*e*f - 7*b*d*g - 5*a*e*g) + c^2*(24*e^2*f^2 - 56*d*e*f*g + 35*d^2
*g^2))*Sqrt[(c*(f + g*x))/(2*c*f - (b + Sqrt[b^2 - 4*a*c])*g)]*Sqrt[-((c*(a + b*
x + c*x^2))/(b^2 - 4*a*c))]*EllipticF[ArcSin[Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x
)/Sqrt[b^2 - 4*a*c]]/Sqrt[2]], (-2*Sqrt[b^2 - 4*a*c]*g)/(2*c*f - (b + Sqrt[b^2 -
 4*a*c])*g)])/(105*c^3*g^4*Sqrt[f + g*x]*Sqrt[a + b*x + c*x^2])

_______________________________________________________________________________________

Rubi in Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x+d)**2*(c*x**2+b*x+a)**(1/2)/(g*x+f)**(1/2),x)

[Out]

Timed out

_______________________________________________________________________________________

Mathematica [C]  time = 15.9825, size = 10030, normalized size = 13.28 \[ \text{Result too large to show} \]

Warning: Unable to verify antiderivative.

[In]  Integrate[((d + e*x)^2*Sqrt[a + b*x + c*x^2])/Sqrt[f + g*x],x]

[Out]

Result too large to show

_______________________________________________________________________________________

Maple [B]  time = 0.063, size = 12923, normalized size = 17.1 \[ \text{output too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x+d)^2*(c*x^2+b*x+a)^(1/2)/(g*x+f)^(1/2),x)

[Out]

result too large to display

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{c x^{2} + b x + a}{\left (e x + d\right )}^{2}}{\sqrt{g x + f}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(c*x^2 + b*x + a)*(e*x + d)^2/sqrt(g*x + f),x, algorithm="maxima")

[Out]

integrate(sqrt(c*x^2 + b*x + a)*(e*x + d)^2/sqrt(g*x + f), x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (e^{2} x^{2} + 2 \, d e x + d^{2}\right )} \sqrt{c x^{2} + b x + a}}{\sqrt{g x + f}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(c*x^2 + b*x + a)*(e*x + d)^2/sqrt(g*x + f),x, algorithm="fricas")

[Out]

integral((e^2*x^2 + 2*d*e*x + d^2)*sqrt(c*x^2 + b*x + a)/sqrt(g*x + f), x)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\left (d + e x\right )^{2} \sqrt{a + b x + c x^{2}}}{\sqrt{f + g x}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x+d)**2*(c*x**2+b*x+a)**(1/2)/(g*x+f)**(1/2),x)

[Out]

Integral((d + e*x)**2*sqrt(a + b*x + c*x**2)/sqrt(f + g*x), x)

_______________________________________________________________________________________

GIAC/XCAS [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(c*x^2 + b*x + a)*(e*x + d)^2/sqrt(g*x + f),x, algorithm="giac")

[Out]

Timed out